import request, { Method } from "@/utils/request.js";

// 获取首页楼层装修数据
export function indexData(params) {
  return request({
    url: "/buyer/other/pageData/getIndex",
    method: Method.GET,
    needToken: false,
    params,
  });
}

/**
 * 获取最新推荐商品
 */
export function getLatestRecommend(){
  return request({
    url: "/api/v1/buyer/index/recommend",
    method: Method.GET,
    needToken: false
  })
}

/**
 * 获取推荐的分类商品
 */
export function getRecommendCategory(){
  return request({
    url: "/api/v1/buyer/index/categoryRecommend",
    method: Method.GET,
    needToken: false
  })
}

/**
 * 获取推荐的分类商品
 */
export function getRecommendBrand(){
  return request({
    url: "/api/v1/buyer/index/brandRecommend",
    method: Method.GET,
    needToken: false
  })
}


/**
 * 获取轮播图
 */
export function getCarousel(){
  return request({
    url: "/api/v1/buyer/index/getIndexCarousel",
    method: Method.GET,
    needToken: false
  })
}

